<?php
    include "../../class/farm.class.php";
    include "../../function/functionPHP.php";
    
    print_r($_POST);
    $farmID=$_POST["farmID"];
    
    if($farmID!=""){
        $farmClass=new farm($farmID);
        $farmClass->updateFarm($_POST);
        header("location:../../?page=member/crop/cropList&farmID=".$farmID);
    }else{
        $farmClass=new farm($_POST);
        header("location:../../?page=member/farm/farm&memID=".$_POST["memID"]);
    }

    